package com.ruoyi.system.service.impl;

import java.util.Collections;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MrWaterTankDischargeInfoMapper;
import com.ruoyi.system.domain.MrWaterTankDischargeInfo;
import com.ruoyi.system.service.IMrWaterTankDischargeInfoService;

/**
 * 水舱排放信息Service业务层处理
 *
 * @author lsw
 * @date 2025-10-13
 */
@Service
public class MrWaterTankDischargeInfoServiceImpl implements IMrWaterTankDischargeInfoService
{
    @Autowired
    private MrWaterTankDischargeInfoMapper mrWaterTankDischargeInfoMapper;

    /**
     * 查询水舱排放信息
     *
     * @param id 水舱排放信息主键
     * @return 水舱排放信息
     */
    @Override
    public MrWaterTankDischargeInfo selectMrWaterTankDischargeInfoById(Long id)
    {
        return mrWaterTankDischargeInfoMapper.selectMrWaterTankDischargeInfoById(id);
    }

    /**
     * 查询水舱排放信息列表
     *
     * @param mrWaterTankDischargeInfo 水舱排放信息
     * @return 水舱排放信息
     */
    @Override
    public List<MrWaterTankDischargeInfo> selectMrWaterTankDischargeInfoList(MrWaterTankDischargeInfo mrWaterTankDischargeInfo)
    {
        return mrWaterTankDischargeInfoMapper.selectMrWaterTankDischargeInfoList(mrWaterTankDischargeInfo);
    }

    /**
     * 查询指定时间之前的水舱排放信息列表
     *
     * @param mrWaterTankDischargeInfo 水舱排放信息
     * @return 水舱排放信息集合
     */
    @Override
    public List<MrWaterTankDischargeInfo> selectMrWaterTankDischargeInfoByTimeList(MrWaterTankDischargeInfo mrWaterTankDischargeInfo) {
        return mrWaterTankDischargeInfoMapper.selectMrWaterTankDischargeInfoByTimeList(mrWaterTankDischargeInfo);
    }

    /**
     * 新增水舱排放信息
     *
     * @param mrWaterTankDischargeInfo 水舱排放信息
     * @return 结果
     */
    @Override
    public int insertMrWaterTankDischargeInfo(MrWaterTankDischargeInfo mrWaterTankDischargeInfo)
    {
        return mrWaterTankDischargeInfoMapper.insertMrWaterTankDischargeInfo(mrWaterTankDischargeInfo);
    }

    /**
     * 修改水舱排放信息
     *
     * @param mrWaterTankDischargeInfo 水舱排放信息
     * @return 结果
     */
    @Override
    public int updateMrWaterTankDischargeInfo(MrWaterTankDischargeInfo mrWaterTankDischargeInfo)
    {
        return mrWaterTankDischargeInfoMapper.updateMrWaterTankDischargeInfo(mrWaterTankDischargeInfo);
    }

    /**
     * 批量删除水舱排放信息
     *
     * @param ids 需要删除的水舱排放信息主键
     * @return 结果
     */
    @Override
    public int deleteMrWaterTankDischargeInfoByIds(Long[] ids)
    {
        return mrWaterTankDischargeInfoMapper.deleteMrWaterTankDischargeInfoByIds(ids);
    }

    /**
     * 删除水舱排放信息信息
     *
     * @param id 水舱排放信息主键
     * @return 结果
     */
    @Override
    public int deleteMrWaterTankDischargeInfoById(Long id)
    {
        return mrWaterTankDischargeInfoMapper.deleteMrWaterTankDischargeInfoById(id);
    }

    /**
     * 删除水舱排放信息信息
     *
     * @param moon 月份
     * @return 结果
     */
    @Override
    public int deleteMrWaterTankDischargeInfoByMoon(String moon) {
        return mrWaterTankDischargeInfoMapper.deleteMrWaterTankDischargeInfoByMoon(moon);
    }
}
